package com.lp.mgt.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.lp.mgt.entities.Role;

@Mapper
public interface RoleMapper {

	List<Role> getUserDataWithTerms(Role role);

	int updateRoleByIdWhenEdit(Role role);

	int deleteRoleById(String rid);

	int saveRolesByBatch(List<Role> roles);

	void deleteRoleAndMenus(String rid);

	void deleteRoleAndUsers(String rid);

}
